<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
</head>
<body>
<script type="text/javascript">
	
var a = 'lsekov';//love no charAt 
//replace // substring 
//substr slice
var l = a.substr(0,1);
var o = a.substr(a.indexOf('o'),1);
var v = a.substr(a.length-1);
var e = a.substr(a.indexOf('e'),1);
alert(l+o+v+e);
//alert(a.substr(0,1))
//a.splice('');
//var b = a.slice(1);
//var c = b.push('o')

</script>
</body>
</html>